// initial state
const state = {
    part1: { 
      id:1,
      name:'张'
    },
    tableData:[],
    loadingVisble:false
  }
   
  // getters
  const getters = {}
   
  // actions
  const actions = {}
   
  // mutations
  const mutations = {
    setPart1(state, part1) { //设置参数
      state.part1 = part1;
    },
    setLoadingVisble(state, loadingVisble) { //设置参数
      state.loadingVisble = loadingVisble;
    },
    setTab(state, part1) { //设置参数
        // console.log( state.tableData);
        state.tableData.push(state.part1);
      }
      ,
    setSplice(state, part1) { //设置参数
        // console.log( state.tableData);
        state.tableData.splice(state.tableData.length-1,1);
      }
  }
   
  export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
  }